import request from "@/request/request";

/* 获取购物车列表的接口 */
export const getShopCartListAPI = () => {
    return request({
        url: "/cart/cartList",
        method: "GET"
    })
}

/* 删除购物车某一个商品的接口 */
export const deleteCartGoodAPI = (id) => {
    return request({
        url: `/cart/deleteCart/${id}`,
        method: "DELETE"
    })
}

/* 修改购物车某一个商品状态的接口 */
export const changeCartGoodAPI = ({skuId, isChecked}) => {
    return request({
        url: `/cart/checkCart/${skuId}/${isChecked}`
    })
}
